﻿<%@ Page Language="C#" AutoEventWireup="True" Inherits="Fjaspx.UI.Web.Administrator_news_news_add" ValidateRequest="false" EnableEventValidation="false" Codebehind="news_add.aspx.cs" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
     
<%@ Register src="../top.ascx" tagname="top_help" tagprefix="uc1" %>

                
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/administrator/images/style.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript src="/administrator/js/alt.js"></SCRIPT>
</head>
<body>
  <form runat=server>


<uc1:top_help ID="top_help2" runat="server" />
  <table width="100%" border="0" cellspacing="0" cellpadding="10">
    <tr>
      <td height="99"><fieldset>
      <legend><img name="" src="/administrator/images/pencil_add.png" width="16" height="16" alt="">&nbsp;&nbsp;发布公司企业新闻</legend>
      <table width="100%" border="0" cellpadding="5" cellspacing="0" style="margin-top:6px">
        <tr>
          <td height="280" valign="top"><table width="100%" height="270" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="270">
                <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#DFDFDF" id="add_table">
                  <tr>
                    <td colspan="3" align="left" nowrap bgcolor="#DDE9FF">切换模式 
                     
                        <label>
                          <input name="_ms" type="radio" id="_ms_0" value="1" >详细模式</label>
                       
                        <label>
                          <input type="radio" name="_ms" value="2" id="_ms_1" checked>简单模式</label>
                        
                    </td>
                    </tr>
                  <tr>
                    <td width="7%" align="right" nowrap bgcolor="#F4FBFF">公司/企业新闻标题： &nbsp;</td>
                    <td width="91%" bgcolor="#F4FBFF"><asp:TextBox ID="txttitle" runat="server" Width="400px" CssClass="input"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                          ControlToValidate="txttitle" ErrorMessage="请填写标题" Display="Dynamic"></asp:RequiredFieldValidator>
                      <asp:CheckBox Checked="false" ID="ding" runat="server" Text="置顶" title="新闻置顶" />                      
                      <asp:CheckBox Checked="false" ID="tuijian" runat="server" Text="推荐" title="新闻推荐" />                      
                      <asp:CheckBox Checked="true" ID="switchs" runat="server" Text="发布" title="新闻发布" /></td>
                    <td width="91%" align="center" nowrap bgcolor="#F4FBFF">&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">属性： &nbsp;</td>
                    <td valign="top" bgcolor="#F4FBFF">

<table width="500" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td nowrap>出处:
      <asp:TextBox ID="txtinfor" runat="server" CssClass="input" Width="50px" Height="20px">原创</asp:TextBox></td>
    <td nowrap>作者:
      <asp:TextBox ID="txtauthor" runat="server" CssClass="input" Width="50px" 
            Height="20px" ReadOnly="True"></asp:TextBox></td>
   
    <td nowrap>阅读次数:
      <asp:TextBox ID="txthits" runat="server" CssClass="input" Width="40px" Height="20px" Text="0"></asp:TextBox></td>
    <td nowrap>顶次数:
      <asp:TextBox ID="txtdig" runat="server" CssClass="input" Width="40px" Height="20px" Text="0"></asp:TextBox></td>
    <td rowspan="2" nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(均为可选属性) </td>
  </tr>
  <tr>
    <td nowrap> 权重:
      <select name="orders" class="drw_list" id="orders" style="height:18px" runat="server">
        <option value="">选择</option>
        <option value="1">001</option>
        <option value="2">002</option>
        <option value="3">003</option>
        <option value="4">004</option>
        <option value="5">005</option>
        <option value="6">006</option>
        <option value="7">007</option>
        <option value="8">008</option>
        <option value="9">009</option>
        <option value="10">010</option>
      </select></td>
    <td nowrap>样式:
      <select name="styles" class="drw_list" id="styles" style="height:18px" runat="server">
        <option value="">选择</option>
        <option value="1">字+1</option>
        <option value="2">字+2</option>
        <option value="3">字+3</option>
        <option value="4">字+4</option>
        <option value="5">字+5</option>
      </select></td>
    <td nowrap>颜色:
      <select name="colors" class="drw_list" id="colors" style="height:18px" runat="server">
        <option value="">选择</option>
        <option value="red">红色</option>
        <option value="blue">蓝色</option>
        <option value="green">绿色</option>
        <option value="black">黑色</option>
      </select></td>
    <td nowrap>&nbsp;</td>
    <td nowrap>&nbsp;</td>
    </tr>
</table></td>
                    <td align="center" valign="middle" nowrap bgcolor="#F4FBFF" width="35">
                    <a href="#" title="点击关闭该项" id="_c1"><font color="#C2CCCC">X</font></a>
                    </td>
                    </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">关键字： &nbsp;</td>
                    <td bgcolor="#F4FBFF"><asp:TextBox ID="keyword" runat="server" Width="400px" CssClass="input"></asp:TextBox>
                      <span class="_help">                      [每个关键字请用英文的逗号隔开例“,”] </span>(可选)</td>
                    <td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c2"><font color="#C2CCCC">X</font></a></td>
                    </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">摘要： &nbsp;</td>
                    <td bgcolor="#F4FBFF"><asp:TextBox ID="txtzhaiyao" runat="server" Width="400px" 
                            CssClass="input" Height="45px" TextMode="MultiLine"></asp:TextBox>
                        (可选)</td>
                    <td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项"  id="_c3"><font color="#C2CCCC">X</font></a>&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">栏目/分类： &nbsp;</td>
                    <td bgcolor="#F4FBFF"><asp:DropDownList ID="DdlMenu" runat="server" Width="320"></asp:DropDownList>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                          ControlToValidate="DdlMenu" ErrorMessage="请填选择分类" Display="Dynamic"></asp:RequiredFieldValidator>
                        (必填)</td>
                    <td align="center" nowrap bgcolor="#F4FBFF">&nbsp;</td>
                    </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">产品图片： &nbsp;</td>
                    <td bgcolor="#F4FBFF">
                      <asp:TextBox ID="txtpic" CssClass="input" runat="server" Width="0px" >no</asp:TextBox>
                         &nbsp;<asp:FileUpload ID="FileUpload1" runat="server" Width="220px" CssClass="input" /> 
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator897" runat="server" 
                          ControlToValidate="txtpic" ErrorMessage="请上传图片" Display="Dynamic"></asp:RequiredFieldValidator>
                         (可选)&nbsp;
                        尺寸
                        <asp:DropDownList ID="DropDownList_ImgSize" runat="server" 
                            DataSourceID="XmlDataSource_ImgSize" DataTextField="name" DataValueField="size">
                        </asp:DropDownList>
                         <asp:XmlDataSource ID="XmlDataSource_ImgSize" runat="server" 
                            DataFile="~/App_Config/ImgSize.xml"></asp:XmlDataSource>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                          ControlToValidate="DropDownList_ImgSize" ErrorMessage="请选择图片尺寸" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:Button ID="Button_add_img" runat="server" 
                           onclick="Button_add_img_Click" Text="上传" CssClass="bt" />
               
                           
                        </td>
                    <td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项"  id="_c4"><font color="#C2CCCC">X</font></a></td>
                    </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">链接： &nbsp;</td>
                    <td bgcolor="#F4FBFF"><asp:TextBox ID="txturl" runat="server"  CssClass="input" Width="320px"></asp:TextBox>
                        (可选)</td>
                    <td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项"  id="_c5"><font color="#C2CCCC">X</font></a></td>
                    </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">跳转URL： &nbsp;</td>
                    <td bgcolor="#F4FBFF"><asp:TextBox ID="jumpurl" runat="server"   CssClass="input" Width="320px"></asp:TextBox>
                        (可选)
<asp:CheckBox Checked="false" ID="jumpurl_on_of" runat="server" Text="启用跳转" title="新闻跳转" /></td>
                    <td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项"  id="_c6"><font color="#C2CCCC">X</font></a></td>
                    </tr>
                  <tr>
                    <td align="right" nowrap bgcolor="#F4FBFF">标签TAG： &nbsp;</td>
                    <td bgcolor="#F4FBFF"><asp:TextBox ID="txttag" runat="server"   CssClass="input" Width="320px"></asp:TextBox>
                      <span class="_help">                      [每个标签请用英文的逗号隔开例“,”] </span>(可选)</td>
                    <td align="center" nowrap bgcolor="#F4FBFF"><a href="#" title="点击关闭该项" id="_c7"><font color="#C2CCCC">X</font></a></td>
                    </tr>
                  <tr>
                    <td align="left" valign="top" nowrap bgcolor="#F4FBFF">
                       &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  &nbsp; &nbsp;内容↓
                       ： &nbsp;</td>
                    <td align="left" valign="top" nowrap bgcolor="#F4FBFF" class="_help">(编辑器支持在线编辑粘贴内容时请清除原有内容格式)</td>
                    <td align="center" valign="top" nowrap bgcolor="#F4FBFF" class="_help"><a href="#" title="点击关闭该项"  id="_c8"><font color="#C2CCCC">X</font></a></td>
                    </tr>
                  <tr>
                    <td colspan="3" align="left" valign="top" nowrap bgcolor="#F4FBFF"><FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="../FCKedit/" Height="400px" ToolbarSet="ROY" Width="100%" Value=""></FCKeditorV2:FCKeditor>         </td>
                  </tr>
                  <tr>
                    <td height="50" colspan="3" align="left" nowrap bgcolor="#F4FBFF">&nbsp;
&nbsp;
<asp:ImageButton ID="ImageButton1" runat="server"  ImageUrl="/administrator/images/submit-bt.gif" OnClick="ImageButton_add_Click" />
                      &nbsp; &nbsp;<span class="_help">(发布参考/注意事项)</span></td>
                    </tr>
                </table>
              </td>
              </tr>
            </table></td>
        </tr>
      </table>
      </fieldset>
      </td>
    </tr>

  </table>
</form>  

<script type="text/javascript">
	   $("#add_table tr:eq(2)").fadeOut("slow"); 
 
       $("#add_table tr:eq(8)").fadeOut("slow"); 
	   $("#add_table tr:eq(9)").fadeOut("slow"); 
       $("#add_table tr:eq(10)").fadeOut("slow"); 
	   $("#add_table tr:eq(11)").fadeOut("slow"); 

//详细模式
$("#_ms_0").click(function () 
    
	{ 
       $("#add_table tr:hidden").fadeIn("slow");; 
    }
	
); 
//简单模式
$("#_ms_1").click(function () 
    
	{ 
	   $("#add_table tr:eq(2)").fadeOut("slow"); 
 
       $("#add_table tr:eq(8)").fadeOut("slow"); 
	   $("#add_table tr:eq(9)").fadeOut("slow"); 
       $("#add_table tr:eq(10)").fadeOut("slow"); 
	   $("#add_table tr:eq(11)").fadeOut("slow"); 
    }
	
);
//跳转模式
$("#jumpurl_on_of").click(function () 
    
	{ 
	   $("#add_table tr:eq(12)").fadeOut("slow"); 
       $("#add_table tr:eq(13)").fadeOut("slow"); 
    }
	
);
//X号 关闭按钮
$("#_c1").click(function (){$("#add_table tr:eq(2)").fadeOut("slow"); });
$("#_c2").click(function (){$("#add_table tr:eq(5)").fadeOut("slow"); });
$("#_c3").click(function (){$("#add_table tr:eq(6)").fadeOut("slow"); });
$("#_c4").click(function (){$("#add_table tr:eq(8)").fadeOut("slow"); });
$("#_c5").click(function (){$("#add_table tr:eq(9)").fadeOut("slow"); });
$("#_c6").click(function (){$("#add_table tr:eq(10)").fadeOut("slow"); });
$("#_c7").click(function (){$("#add_table tr:eq(11)").fadeOut("slow"); });
$("#_c8").click(function (){$("#add_table tr:eq(12)").fadeOut("slow");$("#add_table tr:eq(13)").fadeOut("slow"); });
</script>
   
</body>
</html>
